<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img{
            position: absolute;
            left: 50%;
            transform: translate(-50%,-50%);
            top: 40%;
        }
        p{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 36px;
        }
    </style>
</head>
<body>
{if $code==200}
<img src="__ADMIN_IMG__/chengg.png"  />
{else}
<img src="__ADMIN_IMG__/error.png"  />
{/if}
<p>{$msg}</p>
</body>
<script type="text/javascript" src="__ADMIN_JS__/MaoWenKe.js"></script>
<script type="text/javascript" src="__ADMIN_LAYUI__/layui.all.js"></script>
<script>
    setTimeout(function () {
        var action = "{$action}";
        console.log('action:'+action)
        if(action){
//            console.log(action);
            location.href = action;

        }else{
            var back = "{$backs|default='0'}";
            console.log('back:'+back)
            if(back!=='0'){
                history.back();
            }else{
                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引

                parent.layer.close(index); //再执行关闭
            }
        }
    },1000);
</script>
</html>